import React from "react"
import ReactDOM from "react-dom/client"
import { HashRouter } from "react-router-dom"
import { Provider } from "react-redux"
import { message } from "antd"

import "./index.css"
import App from "./App"
import reportWebVitals from "./reportWebVitals"
import store from "./store/index"
import "./assets/styles/my.less"

const root = ReactDOM.createRoot(document.getElementById("root"))
React.$message = function (content = "成功", type = "success", duration = 2) {
  //content  //duration //type
  message[type](content, duration)
}
root.render(
  <React.StrictMode>
    <HashRouter>
      <Provider store={store}>
        <App />
      </Provider>
    </HashRouter>
  </React.StrictMode>
)
reportWebVitals()
